﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Models
{
    public class Comment
    {
        public int Id { set; get; }
        public int NewsId { set; get; }

        [Required]
        public string Title { set; get; }
        
        [Required]
        public string Text { set; get; }

        public Users Author { set; get; }
        public DateTime PublishDate { set; get; }
        
    }
}